[codex] Move docs-site Render blueprint into docs-site#596
Conversation
df618fe to
8af6895
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8af689514c
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| - type: web | ||
| name: gowdk-page | ||
| runtime: go | ||
| rootDir: docs-site |
There was a problem hiding this comment.
Keep the Render service rooted at the repository root
With rootDir: docs-site, Render's monorepo docs say "Files outside your service's root directory are not available" at build time (https://render.com/docs/monorepo-support). This build still depends on parent files: docs-site/go.mod replaces github.com/cssbruno/gowdk with ../, and syncdocs defaults GOWDK_SOURCE_ROOT to .. to read ../docs; in that Render environment, go run github.com/cssbruno/gowdk/cmd/gowdk build cannot resolve the replacement and docs generation cannot see the source docs. Leave the service rooted at the repo root and cd docs-site, or remove the parent-directory dependencies before setting rootDir.
Useful? React with 👍 / 👎.
Summary
docs-site/render.yaml.rootDir: docs-site, an inline Build Command that generatesdist/sitebeforego build, andstartCommand: ./app.Why
The default Render Go service command can run
go build -tags netgo -ldflags '-s -w' -o appfrom the wrong directory. From the repo root, that builds the root library package into a non-executableapparchive, which then fails at start with./app: Permission denied. Fromdocs-sitewithout the custom build sequence,main.gocan fail because//go:embed dist/siterequires generated output to exist first.The Blueprint now lives next to the docs-site service config and uses the same Root Directory shape as the Render UI: Root Directory
docs-site, Build Command fromdocs-site/render.yaml, Start Command./app.Verification
git diff --cached --checkdocs-site/dist/site/index.htmland rango build -tags netgo -ldflags '-s -w' -o app .fromdocs-siteto verify the embed compile path once generated output exists.Note: I did not run the full docs-site production build locally because the downloaded Tailwind standalone binary was killed by this macOS environment before GOWDK could run the CSS processor.